package com.itheima.functinalInterface;

import java.util.function.Function;

/**
 * @program: itheima-jdk8
 * @description:
 * @author: zhanghz001
 * @create: 2021-01-07 09:44
 **/
public class MyFunctionDemo1 {
    public static void main(String[] args) {
        String value = "666";
        Integer value1 = cover(value, Integer::parseInt);
        System.out.println(value1);
    }
    
    private static Integer cover(String value, Function<String, Integer> function) {
        return function.apply(value) + 222;
    }
}
